
import java.util.Iterator;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Valdez
 */
public class SinglyLinkedListIterator<E> implements Iterator<E> {
        
    protected Node<E> current;

    public SinglyLinkedListIterator(Node nodo) {
        current = nodo;
    }

    public boolean hasNext() {
        return current != null;
    }

    public E next() {
        E temp = current.value();
        current = current.next();
        return temp;
    }

    public void remove() {

    }

}
